package cc.wsyw126.java.service;

import cc.wsyw126.java.model.User;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * Created by junpeng.yang on 16/8/7.
 */
public class InvokeMethod1 {
    public String getString(String s){
        System.out.println("s = [" + s + "]");
        return  s;
    }

    public ArrayList<HashMap<String,User>> getArrayList(){
        HashMap<String,User> map = new HashMap<String, User>();
        User u1 = new User();
        u1.setName("1");

        User u2 = new User();
        u1.setName("2");
        map.put("1",u1);
        map.put("2",u2);

        ArrayList<HashMap<String,User>> result = new ArrayList<HashMap<String, User>>();
        result.add(map);
        return  result;
    }


    public User getUser(String s,Integer i){
        User u = new User();
        u.setName(s);
        u.setPassword(i.toString());
        return  u;
    }
}
